package newpackage;
import java.io.*;
public class Employee{
    String name;
    int Age;
    String designation;
    double salary;
    public Employee(String name){
        this.name=name;
    }
    public void empAge(int empAge){
        Age=empAge;
    }
    public void empDesignation(String empDesig){
        designation=empDesig;
    }
    public void empSalary(double empSalary){
        salary=empSalary;
    }
    public void printEmployee(){
        System.out.println("名字"+name);
       System.out.println("年龄"+Age);
        System.out.println("职位"+designation);
         System.out.println("薪水"+salary);
    
    
    
    }
}

